package cn.csg.iotplatform.module.system.enums.security;

import cn.hutool.core.util.ArrayUtil;
import cn.hutool.core.util.ObjUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum SecurityStatusEnum {

    DISABLE(0), // 禁用
    ENABLE(1), // 启用
    ;

    private final Integer status;

    public static boolean isEnable(Integer status) {
        return ObjUtil.equal(SecurityStatusEnum.ENABLE, status);
    }

    public static boolean isDisable(Integer status) {
        return ObjUtil.equal(SecurityStatusEnum.DISABLE, status);
    }

}
